package com.gateway.server.svc;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * 权限过滤
 *
 * @Author yin_q
 * @Date 2019/8/28 15:39
 * @Email yin_qingqin@163.com
 **/
public interface PermissionSvc {

    /**
     * 验证权限
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
